package com.atguigu.lease.model.entity;

import com.atguigu.lease.model.base.BaseEntity;
import com.atguigu.lease.model.enums.FacilityInfoTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * @TableName facility_info
 */
@TableName(value ="facility_info")
@Data
public class FacilityInfo extends BaseEntity implements Serializable {
//    private Integer type;
    // 使用枚举对象接收前端新增的数据
    //mybtis不能直接将 数据库查询到的简单数据转为一个枚举对象，mp提供了注解标注到枚举类的 指定属性上 可以让该属性接收 查询到的值
    //sql从数据库查询到type=1 ,mybatis需要将1设置给枚举对象
    private FacilityInfoTypeEnum type;

    private String name;

    private String icon;

    private static final long serialVersionUID = 1L;
}